/**
 * @Author yinyunqi
 * @date 2018年2月1日
 * @Content 
 */
package com.yongqi.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

public class ErrorController implements org.springframework.boot.autoconfigure.web.ErrorController{
    
    private static final String error_path="/error";
    
    @RequestMapping(value = error_path)
    public String handlerError() {
	return "404";
    }
    /* (non-Javadoc)
     * @see org.springframework.boot.autoconfigure.web.ErrorController#getErrorPath()
     */
    @Override
    public String getErrorPath() {
	// TODO Auto-generated method stub
	return error_path;
    }
    
}

